<?php if ($module->showtitle) { ?>
<h2><?php echo $module->title; ?></h2>
<?php } ?>
<div class="products latest_products">
	<div class="foo2">
	<?php foreach($last_prod as $curr){ ?>
	   <div class="item block_item">
		   <?php if ($show_image) { ?>
		   <?php if ($curr->label_id){?>
								<div class="product_label">
								<?php if ($curr->_label_image){?>
									<img src="<?php print $curr->_label_image?>" alt="<?php print htmlspecialchars($curr->_label_name)?>" />
								<?php }else{?>
									<span class="label_name"><?php print $curr->_label_name;?></span>
								<?php }?>
								</div>
							<?php }?>
		   <div class="framee">
			   <a href="<?php print $curr->product_link?>"><img src = "<?php print $jshopConfig->image_product_live_path?>/<?php if ($curr->product_thumb_image) print $curr->product_thumb_image; else print $noimage?>" alt="" /></a>
		   </div>
		   <?php } ?>
		   <div class="pa10">
			   <p class="title">
				   <a href="<?php print $curr->product_link?>"><?php print $curr->name?></a>
			   </p>
			   <?php if ($curr->_display_price){?>
			   <p class="price">
				   <?php print formatprice($curr->product_price);?>
			   </p>
			   <?php }?>
			   <a href="<?php print $curr->product_link?>" class="btnDetail">Xem chi tiết</a>
		   </div>
	   </div>       
	<?php } ?>
	</div>
				<!--<a id="prev2" class="prevx" href="#move">&lt;</a>
				<a id="next2" class="nextx" href="#move">&gt;</a>
				<div class="pager pager2"></div>-->
</div>